package com.example


object MyClass {

    @JvmStatic
    fun main(args: Array<String>) {
//        println("Hello World!")
        var value = 20
        var temp = value
        var result = value
        while (--temp > 0 || value == 0) {

            if (value == 0) {
                result = 1
                break
            } else {
                result = result.times(temp)
            }

        }

        println(result)
    }


}
